﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SimpleNotify.ClientWrapper;
using System.ServiceModel;
using System.Threading;
using System.Diagnostics;

namespace SendMultipleMessages
{
    class Program
    {
        static void Main(string[] args)
        {
            Stopwatch sw = Stopwatch.StartNew();
            for (int i = 0; i < 100; i++)
            {
                ServiceReference1.ServiceClient c = new ServiceReference1.ServiceClient(new InstanceContext(new Class1()));              
                c.PushMessageToClient("c1045nb2", "title", "text", SimpleNotify.ClientWrapper.NotifyService.NotificationType.Warning);
                c.Close();
            }
            Console.WriteLine("fertig in " + sw.Elapsed.ToString());
            Console.ReadLine();
        }
    }
}
